﻿#region using
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using AwesomeTanks.Sources.Media;
using AwesomeTanks.Sources.GameElements;
#endregion

namespace AwesomeTanks.Sources.Screens
{
    /// <summary>
    /// Display the picture for controls
    /// </summary>
    public class ControlsMenuScreen : MenuScreen
    {
        #region Fields
        public const int CONTROLS_POSITION_OFFSET_X = 0;
        public const int CONTROLS_POSITION_OFFSET_Y = -15;

        public Sprite Controls { get; set; }

        #endregion

        #region Constuctor
        /// <summary>
        /// Initializes a new instance of the <see cref="ControlsMenuScreen"/> class.
        /// </summary>
        public ControlsMenuScreen()
            : base("Controls")
        {
            Controls = new Sprite(Art.ControlsMenu, null, new Vector2(CONTROLS_POSITION_OFFSET_X, CONTROLS_POSITION_OFFSET_Y));
        }
        #endregion

        #region Update and Draw
        /// <summary>
        /// Draws the controls menu screen (display H.U.D infos and controls infos).
        /// </summary>
        /// <param name="gameTime">The game time.</param>
        public override void Draw(GameTime gameTime)
        {
            base.Draw(gameTime);
            SpriteBatch spriteBatch = ScreenManager.SpriteBatch;
            spriteBatch.Begin();
            Controls.Draw(spriteBatch);
            spriteBatch.End();
        }
        #endregion
    }
}
